package net.demo2;

public class Animal {
    int age;
    String name = "Animal";

    public Animal(int age, String name) {
        this.age = age;
        this.name = name;
    }

    public Animal() {
    }

    public void eat() {
        System.out.println(this.name + "在吃饭");
    }
}
